package com.probox.common.core.utils;

import lombok.Data;

import java.io.Serializable;

/**
 * 用于存放富文本组件的配置
 */
@Data
public class UEditorConfigVo implements Serializable {

    private String imageActionName;
    private String imageFieldName;
    private Integer imageMaxSize;
    private String[] imageAllowFiles;
    private boolean imageCompressEnable;
    private Integer imageCompressBorder;
    private String imageInsertAlign;
    private String imageUrlPrefix;
    private String imagePathFormat;


    public UEditorConfigVo() {
        this.imageActionName = "imageActionName";
        this.imageFieldName = "upfile";
        this.imageMaxSize = 104857600;
        String[] arr = {".png", ".jpg", ".jpeg", ".gif", ".bmp"};
        this.imageAllowFiles = arr;
        this.imageCompressEnable = false;
        this.imageCompressBorder = 1600;
        this.imageInsertAlign = "none";
        this.imageUrlPrefix = "";
        this.imagePathFormat = "/ueditor/image";
    }


}
